home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Guided Tour of Multimedia (Second Edition)
/
The Guided Tour of Multimedia (Second Edition).iso
/
trials
/
director
/
evalcopy
/
director.z
/
NAVIGATR.DIR
/
00479_Field_479.txt
< prev
next >
Wrap
Text File
|
1994-06-14
|
1KB
|
36 lines
MECH , 79
--=================================================================
on mTestSuction me
if the locV of sprite mySprite >= vacArea then
-- at bottom of stage, suck right to vacumm Chute
if inSuction = FALSE then
-- this is the first time in vac field so we do a few special things
set inSuction = TRUE
put the locV of sprite mySprite into vert
set the locV of sprite mySprite = vert + velocityV
set velocityH = velocityH + vacSuction
put the locH of sprite mySprite + velocityH into horz
set the locH of sprite mySprite = horz
else
if the locV of sprite mySprite <> ground then
mBallSound (me)
set the locV of sprite mySprite = ground
else
set velocityH = velocityH + vacSuction
put the locH of sprite mySprite + velocityH into horz
if horz <= (the locH of sprite 22) then
set the locH of sprite mySprite = horz
else
set the locH of sprite mySprite = the left of sprite 22
end if
end if
end if
else
set inSuction = FALSE
end if
return inSuction
end mTestSuction